{% include 'base.html' %}
{% from 'bootstrap4/table.html' import render_table %}
{% from 'bootstrap4/pagination.html' import render_pager, render_pagination %}
{% from 'bootstrap4/form.html' import render_form, render_field %}

<head>
    <meta charset="UTF-8">
    <title>筛选</title>
</head>

<style>
    table th:nth-child(1)  { width:2%; }
    table th:nth-child(2)  { width:18%; }
    table th:nth-child(3)  { width:10%; }
    table th:nth-child(4)  { width:10%; }
</style>

<div class="data">
    {% block content %}
        <form method="get">
        {{ form.csrf_token }}
        <div class="fo1">
            {{ render_field(form.case) }}
        </div>
        <div class="fo1">
            {{ render_field(form.execute) }}
        </div>
        <div class="fo1">
            {{ render_field(form.judge) }}
        </div>
        <div class="fo1">
            {{ render_field(form.money) }}
        </div>
        <div class="fo2">
            {{ render_field(form.submit) }}
        </div>
        </form>

        {% if messages %}
            {{ render_table(messages, titles, table_classes='table-responsive table-striped',
                            header_classes='thead-dark',
                            show_actions=True, model=Enterprise,
                            view_url=('view_message', [('message_id', ':id')])
                            ) }}
        {% endif %}
    {% endblock %}
    <div class="pagination">
        {{ render_pagination(pagination) }}
    </div>
</div>

